package com.ruoyi.app.mapper;

import com.ruoyi.app.domain.TripComment;
import com.ruoyi.app.domain.TripCommentExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TripCommentMapper {
    int countByExample(TripCommentExample example);

    int deleteByExample(TripCommentExample example);

    int deleteByPrimaryKey(Long id);

    int insert(TripComment record);

    int insertSelective(TripComment record);

    List<TripComment> selectByExampleWithBLOBs(TripCommentExample example);

    List<TripComment> selectByExample(TripCommentExample example);

    TripComment selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") TripComment record, @Param("example") TripCommentExample example);

    int updateByExampleWithBLOBs(@Param("record") TripComment record, @Param("example") TripCommentExample example);

    int updateByExample(@Param("record") TripComment record, @Param("example") TripCommentExample example);

    int updateByPrimaryKeySelective(TripComment record);

    int updateByPrimaryKeyWithBLOBs(TripComment record);

    int updateByPrimaryKey(TripComment record);

    List<TripComment> selectList(Long tripId);

    List<TripComment> selectMessageList(Long userId);

    int delMessageList(@Param("ids") List<Long> commentReadyList);
}